<template>
	
	<view>
		shop首页
		<view @click="logout">退出，跳转到登录页面</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			
			}
		},
		onLoad() {
			
		},
		methods: {
			logout(){
				localStorage.clear("jwt")
				localStorage.clear("role")
				console.log(localStorage.getItem("jwt"))
				console.log(localStorage.getItem("role"))
				uni.navigateTo({
					url:'/pages/index/login'
				})
			},
	
		}
	}
</script>

<style>
</style>